<?php
/**
 * 教职工路由
 * @author GL
 * @date 2018.8.23
 */


//更改密码
Route::match(['get','post'],'/login/changePass','LoginController@changePassword');
Route::group([ 'prefix' => '/api', 'as' => 'Index::'], function () {
    Route::match(['get','post'],'/teachadd','TeachProgramController@add');
    Route::match(['get','post'],'/teachupdate','TeachProgramController@update');
    Route::match(['get','post'],'/programlist','TeachProgramController@programlist');
    Route::match(['get','post'],'/programdel','TeachProgramController@del');
    
    Route::match(['get','post'],'/practiceadd','TeachPracticeController@add');
    Route::match(['get','post'],'/practiceupdate','TeachPracticeController@update');
    Route::match(['get','post'],'/practicelist','TeachPracticeController@practicelist');
    Route::match(['get','post'],'/programdel','TeachPracticeController@del');
    
    Route::match(['get','post'],'/experienceadd','TeachExperienceController@add');
    Route::match(['get','post'],'/experienceupdate','TeachExperienceController@update');
    Route::match(['get','post'],'/experiencelist','TeachExperienceController@experiencelist');
    Route::match(['get','post'],'/experiencedel','TeachExperienceController@del');
    
    Route::match(['get','post'],'/reflectionadd','TeachReflectionController@add');
    Route::match(['get','post'],'/reflectionupdate','TeachReflectionController@update');
    Route::match(['get','post'],'/reflectionlist','TeachReflectionController@reflectionlist');
    Route::match(['get','post'],'/reflectiondel','TeachReflectionController@del');
    
    Route::match(['get','post'],'/honoradd','MyHonorController@add');
    
    Route::match(['get','post'],'/trainhonoradd','MyTrainHonorController@add');
    
    Route::match(['get','post'],'/specialadd','MySpecialController@add');
    
    Route::match(['get','post'],'/trainadd','MyTrainController@add');
    Route::match(['get','post'],'/trainlist','MyTrainController@trainList');
    
    Route::get('/index', ['uses' => 'IndexContreoller@index', 'as' => 'index']);
});


//教职工信息
Route::group([ 'prefix' => '/worker', 'as' => 'worker::'], function () {
    Route::get('/list', ['uses' => 'WorkerController@workerList', 'as' => 'workerList']);
    Route::get('/info', ['uses' => 'WorkerController@workerInfo', 'as' => 'workerInfo']);
});